<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page session="false"%>
<div class="col_5 col">
	<h1>${player.firstName} ${player.lastName}</h1>
	<div class="col_5 col">
		<form:form method="post" action="add" commandName="player">
			<table>
				<tr>
					<td><form:label path="id">id: </form:label></td>
					<td><form:input path="id" /></td>
				</tr>
				<tr>
					<td><form:label path="firstName">first name: </form:label></td>
					<td><form:input path="firstName" /></td>
				</tr>
				<tr>
					<td><form:label path="middleName">middle name
						</form:label></td>
					<td><form:input path="middleName" /></td>
				</tr>
				<tr>
					<td><form:label path="lastName">last name
						</form:label></td>
					<td><form:input path="lastName" /></td>
				</tr>
				<tr>
					<td><form:label path="dateOfBirth">dateOfBirth
						</form:label></td>
					<td><form:input path="dateOfBirth" /></td>
				</tr>
				<tr>
					<td><form:label path="height">height
						</form:label></td>
					<td><form:input path="height" /></td>
				</tr>
				<tr>
					<td><form:label path="weight">weight
						</form:label></td>
					<td><form:input path="weight" /></td>
				</tr>
<%-- 				<tr>
					<td><form:label path="countryOfBirth">Country of birth
						</form:label></td>
					<td><form:select path="countryOfBirth" items="${countryList}" itemLabel="name" itemValue="code" /></td>
				</tr>--%>
				<tr>
					<td><form:label path="team">team
						</form:label></td>
					<td><form:select path="team" items="${teamList}" itemLabel="name" itemValue="id" /></td>
				</tr> 
				<tr>
					<td><form:label path="activeTweeter">active tweeter
						</form:label></td>
					<td><form:checkbox path="activeTweeter" /></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="save" /></td>
				</tr>
			</table>
		</form:form>
	</div>
</div>

